home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2003 May
/
cmycha200305.iso
/
MutantStorm
/
setup_mutantstorm_demo.exe
/
{app}
/
script
/
chunk-1.lua
< prev
next >
Wrap
Text File
|
2002-09-06
|
1KB
|
39 lines
-- leave me
local actor = ACTOR_preload()
-- leave me
actor[cp_actor_name] = "chunk-1"
actor[cp_model_dir] = "beasties"
actor[cp_model_name] = "chunk-1"
actor[cp_in_beastie_count] = 0
actor[cp_actor_type] = cat_block
actor[cp_these_collide_with_me] = cat_player + cat_bullet + cat_crystal + cat_webblob + cat_geopus + cat_mergeblob
actor[cp_health_regain] = 0.2
actor[cp_health_percent] = 2000.0
actor[cp_health_type] = health_chunk_regain
actor[cp_health_byebye_percent] = 50.0
actor[cp_launch_hue_shift] = color
actor[cp_level_end_score] = 1000
-- leave me
c_preload_model( actor )
-- leave me
c_set_random_anim( "throb", 50.0, 150.0, 0.0, 0.0 )
c_add_particle_to_anim( "emerge", "partbone", "ring_emerge" )
c_add_sound_to_event( "hit_active_bone", "chunk_hit" )
c_add_sound_to_anim( "emerge", "chunk_emerge" )
local seq = { 0.0, 0.1, 0.2, 0.4 }
c_set_use_explosion_for( "bye_bye", "chunk_red", exp_no_align, 25.0, 0.0, 1500.0, 1800.0, seq )
c_set_use_explosion_for( "bye_bye", "chunk-flash", exp_no_align, 0.0, 0.5, 3500.0, 3500.0, {0.0} )
c_add_sound_to_explosion( "chunk_red", "explode", "chunk_explode" )